from matplotlib import pyplot as plt
import numpy as np
x = np.arange(0,2*np.pi,np.pi/100)
y = np.sin(x)**2
plt.plot(x, y)
plt.show()